package com.woniuxy.service.service;

import com.woniuxy.commons.entity.Order;
import com.woniuxy.service.utils.PageMessage;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService {
    public PageMessage all(int page,int size);
    public boolean turn(int orderId,int escortId);
    public boolean close(int orderId);
    public PageMessage findbyNoAndNameNndStatus(int page,int size,String no,String name,String escort,int status);
    public List<Order> disabled(int disabledId);
    public boolean closebydisabled(int orderId);
    public List<Order> findbydisabled(String key,int disabledId);
    public List<Order> findbyescortId(String key,int escortId);
    public boolean add(Order order);
    public Order findbyid(int orderId);
    public boolean pay(int orderId);
    public boolean paybyno(String orderNo);
    public boolean setorderno(String orderNo,int orderId);
    public boolean revisit(int orderId);
    public void review(String review,int orderId);

    public List<Order> escort(int escortId);
    public boolean accept(int orderId);
    public boolean refuse(int orderId);
}
